package club.gskj.gulimall.member.feign;


import club.gskj.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/***
 *  订单远程服务接口
 */
@FeignClient("gulimall-order")
public interface OrderFeignService {

    /***
     * 分页查询当前登陆用户的订单、订单项信息
     * @param params 查询条件
     */
    @PostMapping("ware/order/listWithItem")
    R listOrderWithItems(@RequestBody Map<String, Object> params);
}
